using System;
using Rdl;

namespace GTame.ReportParser
{

    public class MatrixType
    {

        private GTame.ReportParser.ActionType _Action;
        private string _Bookmark;
        private string _CellDataElementName;
        private Rdl.MatrixTypeCellDataElementOutput _CellDataElementOutput;
        private GTame.ReportParser.ColumnGroupingsType _ColumnGroupings;
        private GTame.ReportParser.CornerType _Corner;
        private GTame.ReportParser.CustomPropertiesType _CustomProperties;
        private string _DataElementName;
        private Rdl.MatrixTypeDataElementOutput _DataElementOutput;
        private string _DataSetName;
        private GTame.ReportParser.FiltersType _Filters;
        private System.Nullable<uint> _GroupsBeforeRowHeaders;
        private string _Height;
        private System.Nullable<bool> _KeepTogether;
        private string _Label;
        private Rdl.MatrixTypeLayoutDirection _LayoutDirection;
        private string _Left;
        private string _LinkToChild;
        private GTame.ReportParser.MatrixColumnsType _MatrixColumns;
        private GTame.ReportParser.MatrixRowsType _MatrixRows;
        private string _NoRows;
        private System.Nullable<bool> _PageBreakAtEnd;
        private System.Nullable<bool> _PageBreakAtStart;
        private string _RepeatWith;
        private GTame.ReportParser.RowGroupingsType _RowGroupings;
        private GTame.ReportParser.StyleType _Style;
        private string _ToolTip;
        private string _Top;
        private GTame.ReportParser.VisibilityType _Visibility;
        private string _Width;
        private System.Nullable<uint> _ZIndex;
        private string nameField;

        public GTame.ReportParser.ActionType Action
        {
            get
            {
                if (_Action == null)
                    _Action = new GTame.ReportParser.ActionType();
                return _Action;
            }
            set
            {
                _Action = value;
            }
        }

        public string Bookmark
        {
            get
            {
                return _Bookmark;
            }
            set
            {
                _Bookmark = value;
            }
        }

        public string CellDataElementName
        {
            get
            {
                return _CellDataElementName;
            }
            set
            {
                _CellDataElementName = value;
            }
        }

        public Rdl.MatrixTypeCellDataElementOutput CellDataElementOutput
        {
            get
            {
                return _CellDataElementOutput;
            }
            set
            {
                _CellDataElementOutput = value;
            }
        }

        public GTame.ReportParser.ColumnGroupingsType ColumnGroupings
        {
            get
            {
                if (_ColumnGroupings == null)
                    _ColumnGroupings = new GTame.ReportParser.ColumnGroupingsType();
                return _ColumnGroupings;
            }
            set
            {
                _ColumnGroupings = value;
            }
        }

        public GTame.ReportParser.CornerType Corner
        {
            get
            {
                if (_Corner == null)
                    _Corner = new GTame.ReportParser.CornerType();
                return _Corner;
            }
            set
            {
                _Corner = value;
            }
        }

        public GTame.ReportParser.CustomPropertiesType CustomProperties
        {
            get
            {
                if (_CustomProperties == null)
                    _CustomProperties = new GTame.ReportParser.CustomPropertiesType();
                return _CustomProperties;
            }
            set
            {
                _CustomProperties = value;
            }
        }

        public string DataElementName
        {
            get
            {
                return _DataElementName;
            }
            set
            {
                _DataElementName = value;
            }
        }

        public Rdl.MatrixTypeDataElementOutput DataElementOutput
        {
            get
            {
                return _DataElementOutput;
            }
            set
            {
                _DataElementOutput = value;
            }
        }

        public string DataSetName
        {
            get
            {
                return _DataSetName;
            }
            set
            {
                _DataSetName = value;
            }
        }

        public GTame.ReportParser.FiltersType Filters
        {
            get
            {
                if (_Filters == null)
                    _Filters = new GTame.ReportParser.FiltersType();
                return _Filters;
            }
            set
            {
                _Filters = value;
            }
        }

        public System.Nullable<uint> GroupsBeforeRowHeaders
        {
            get
            {
                return _GroupsBeforeRowHeaders;
            }
            set
            {
                _GroupsBeforeRowHeaders = value;
            }
        }

        public string Height
        {
            get
            {
                return _Height;
            }
            set
            {
                _Height = value;
            }
        }

        public System.Nullable<bool> KeepTogether
        {
            get
            {
                return _KeepTogether;
            }
            set
            {
                _KeepTogether = value;
            }
        }

        public string Label
        {
            get
            {
                return _Label;
            }
            set
            {
                _Label = value;
            }
        }

        public Rdl.MatrixTypeLayoutDirection LayoutDirection
        {
            get
            {
                return _LayoutDirection;
            }
            set
            {
                _LayoutDirection = value;
            }
        }

        public string Left
        {
            get
            {
                return _Left;
            }
            set
            {
                _Left = value;
            }
        }

        public string LinkToChild
        {
            get
            {
                return _LinkToChild;
            }
            set
            {
                _LinkToChild = value;
            }
        }

        public GTame.ReportParser.MatrixColumnsType MatrixColumns
        {
            get
            {
                if (_MatrixColumns == null)
                    _MatrixColumns = new GTame.ReportParser.MatrixColumnsType();
                return _MatrixColumns;
            }
            set
            {
                _MatrixColumns = value;
            }
        }

        public GTame.ReportParser.MatrixRowsType MatrixRows
        {
            get
            {
                if (_MatrixRows == null)
                    _MatrixRows = new GTame.ReportParser.MatrixRowsType();
                return _MatrixRows;
            }
            set
            {
                _MatrixRows = value;
            }
        }

        public string Name
        {
            get
            {
                return nameField;
            }
            set
            {
                nameField = value;
            }
        }

        public string NoRows
        {
            get
            {
                return _NoRows;
            }
            set
            {
                _NoRows = value;
            }
        }

        public System.Nullable<bool> PageBreakAtEnd
        {
            get
            {
                return _PageBreakAtEnd;
            }
            set
            {
                _PageBreakAtEnd = value;
            }
        }

        public System.Nullable<bool> PageBreakAtStart
        {
            get
            {
                return _PageBreakAtStart;
            }
            set
            {
                _PageBreakAtStart = value;
            }
        }

        public string RepeatWith
        {
            get
            {
                return _RepeatWith;
            }
            set
            {
                _RepeatWith = value;
            }
        }

        public GTame.ReportParser.RowGroupingsType RowGroupings
        {
            get
            {
                if (_RowGroupings == null)
                    _RowGroupings = new GTame.ReportParser.RowGroupingsType();
                return _RowGroupings;
            }
            set
            {
                _RowGroupings = value;
            }
        }

        public GTame.ReportParser.StyleType Style
        {
            get
            {
                if (_Style == null)
                    _Style = new GTame.ReportParser.StyleType();
                return _Style;
            }
            set
            {
                _Style = value;
            }
        }

        public string ToolTip
        {
            get
            {
                return _ToolTip;
            }
            set
            {
                _ToolTip = value;
            }
        }

        public string Top
        {
            get
            {
                return _Top;
            }
            set
            {
                _Top = value;
            }
        }

        public GTame.ReportParser.VisibilityType Visibility
        {
            get
            {
                if (_Visibility == null)
                    _Visibility = new GTame.ReportParser.VisibilityType();
                return _Visibility;
            }
            set
            {
                _Visibility = value;
            }
        }

        public string Width
        {
            get
            {
                return _Width;
            }
            set
            {
                _Width = value;
            }
        }

        public System.Nullable<uint> ZIndex
        {
            get
            {
                return _ZIndex;
            }
            set
            {
                _ZIndex = value;
            }
        }

        public MatrixType()
        {
            _GroupsBeforeRowHeaders = new System.Nullable<uint>[]();
            _KeepTogether = new System.Nullable<bool>[]();
            _PageBreakAtEnd = new System.Nullable<bool>[]();
            _PageBreakAtStart = new System.Nullable<bool>[]();
            _ZIndex = new System.Nullable<uint>[]();
        }

        public Rdl.MatrixType Write()
        {
            // trial
            return null;
        }

    } // class MatrixType

}

